﻿@using UsedBookTradeSystem.Models.Entity;
@{
    ViewData["Title"] = "Edit";
    Layout = "~/Views/Shared/_BackLayout.cshtml";
    BookCategory category = ViewBag.Category;
}

<div class="container-fluid flex-grow-1 container-p-y">
    <h4 class="font-weight-bold py-3 mb-0">书籍类别管理</h4>

    <div class="card mb-4">
        <h6 class="card-header">修改书籍类别</h6>
        <div class="card-body">
            <form action="/Category/UpdateCategory" method="post">
                <div class="form-group row">
                    <input name="Id" value="@category.Id" hidden/>
                    <label class="col-form-label col-sm-2 text-sm-right">类别名称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="categoryName" value="@category.CategoryName" placeholder="请输入类别名称" />
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div class="form-group row">
                    <div class="col-sm-10 ml-sm-auto">
                        <button type="submit" class="btn btn-success">确定</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

